<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" name="viewport" />
  <meta content="yes" name=" apple-mobile-web-app-capable" />
  <!-- 隐藏状态栏  -->
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
  <title>地图</title>
  <link rel="stylesheet" href="css/common.css">
  <link rel="stylesheet" href="css/details.css">
  <!-- 地图 --> 
  <style type="text/css">
    body, html,#allmap {width: 100%;height: 100%;overflow: hidden;margin:0;}
    #golist {display: none;}
    @media (max-device-width: 780px){#golist{display: block !important;}}
    .BMap_pop{
      top: 194px!important;
    }
  </style>
</head>
<body style="background:#f6f2f1;">
  <button type="button" onclick="open()">TEST</button>
</body>
<span style="display:none;"><script type="text/javascript">var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");document.write(unescape("%3Cspan id='cnzz_stat_icon_1255764485'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s95.cnzz.com/z_stat.php%3Fid%3D1255764485%26show%3Dpic1' type='text/javascript'%3E%3C/script%3E"));</script></span>
<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script src="js/common.js"></script>
<script>
  function wxJssdkInit() {
  $.ajax({
    type: 'POST',
    dataType: 'json',
    url: server_host + '/h5wx/getWxTicket.do?url=' + encodeURIComponent(location.href.split('#')[0]),
    success: function(data) {
      wx.config({
        debug: false,
        appId: wxAppId,
        timestamp: data.timestamp,
        nonceStr: data.nonceStr,
        signature: data.signature,
        jsApiList: wxJsApi
      });
    }
  });
}

if (typeof WeixinJSBridge == "undefined") {
  if (document.addEventListener) {
    document.addEventListener('WeixinJSBridgeReady', wxJssdkInit, false);
  } else if (document.attachEvent) {
    document.attachEvent('WeixinJSBridgeReady', wxJssdkInit);
    document.attachEvent('onWeixinJSBridgeReady', wxJssdkInit);
  }
} else {
  wxJssdkInit();
}

// function open(){
//   wx.openLocation({
//       latitude: 30.280976, // 纬度，浮点数，范围为90 ~ -90
//       longitude: 120.142464, // 经度，浮点数，范围为180 ~ -180。
//       name: '测试', // 位置名
//       address: '文三路', // 地址详情说明
//       scale: 20, // 地图缩放级别,整形值,范围从1~28。默认为最大
//       infoUrl: '' // 在查看位置界面底部显示的超链接,可点击跳转
//     });
// }
</script>
<script>
    _maq.push(['_setMaq', 'map']);
</script>
</html>
</html>